package com.linyf.design.abstractFactory.two;

import com.linyf.design.abstractFactory.two.productA.AbstractProductA;
import com.linyf.design.abstractFactory.two.productA.ProductA2;
import com.linyf.design.abstractFactory.two.productB.AbstractProductB;
import com.linyf.design.abstractFactory.two.productB.ProductB2;

/**
 * @Author: linyf
 * @Description: TODO
 * @DateTime: 2023/3/29 10:23
 **/
public class Creator2 extends AbstractFactory{
    @Override
    public AbstractProductA createProductA() {
        return new ProductA2();
    }

    @Override
    public AbstractProductB createProductB() {
        return new ProductB2();
    }
}
